/**
 * Interaction.java
 * 
 * $Source$
 */
/*
 * Copyright (c) 2012 MyDoctor.com, Inc. All rights reserved.
 */

package com.mydoctor.domain;

import java.io.Serializable;
import java.sql.Time;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the interactions database table.
 * 
 */
@Entity
@Table(name = "interactions")
public class Interaction implements Serializable
{
    private static final long serialVersionUID = 1L;

    @Id
    private int interactionId;

    @Lob()
    private String comments;

    @Temporal(TemporalType.DATE)
    private Date dateOfInteraction;

    private int delayOfAppointment;

    private int doctorId;

    private String doctorSpecialization;

    private float overallRating;

    private Time timeOfAppointment;

    private int userId;

    protected Interaction()
    {
    }

    public String getComments()
    {
        return this.comments;
    }

    public Date getDateOfInteraction()
    {
        return this.dateOfInteraction;
    }

    public int getDelayOfAppointment()
    {
        return this.delayOfAppointment;
    }

    public int getDoctorId()
    {
        return this.doctorId;
    }

    public String getDoctorSpecialization()
    {
        return this.doctorSpecialization;
    }

    public int getInteractionId()
    {
        return this.interactionId;
    }

    public float getOverallRating()
    {
        return this.overallRating;
    }

    public Time getTimeOfAppointment()
    {
        return this.timeOfAppointment;
    }

    public int getUserId()
    {
        return this.userId;
    }

    protected void setComments(String comments)
    {
        this.comments = comments;
    }

    protected void setDateOfInteraction(Date dateOfInteraction)
    {
        this.dateOfInteraction = dateOfInteraction;
    }

    protected void setDelayOfAppointment(int delayOfAppointment)
    {
        this.delayOfAppointment = delayOfAppointment;
    }

    protected void setDoctorId(int doctorId)
    {
        this.doctorId = doctorId;
    }

    protected void setDoctorSpecialization(String doctorSpecialization)
    {
        this.doctorSpecialization = doctorSpecialization;
    }

    protected void setInteractionId(int interactionId)
    {
        this.interactionId = interactionId;
    }

    protected void setOverallRating(float overallRating)
    {
        this.overallRating = overallRating;
    }

    protected void setTimeOfAppointment(Time timeOfAppointment)
    {
        this.timeOfAppointment = timeOfAppointment;
    }

    protected void setUserId(int userId)
    {
        this.userId = userId;
    }

}